﻿@model IEnumerable<HexagonWeb.Models.Airline>

@{
    ViewBag.Title = "订票";
}

<div class="row">
    @{ Html.RenderPartial("Book"); }

    <table class="table">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.Num)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.EscapeDistrict)-@Html.DisplayNameFor(model => model.ArriveDistrict)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Type)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.WeekDay)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.EscapeTime)-@Html.DisplayNameFor(model => model.ArriveTime)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.TopCost)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.MidCost)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LowCost)
            </th>
            <th></th>
        </tr>
        @foreach (var item in Model)
        {

            <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.Num)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.EscapeDistrict)-@Html.DisplayFor(modelItem => item.ArriveDistrict)
                    </td>

                    @{if (item.Type == 0)
                      {
                        <td>AirBus 330</td>
                      }
                      else
                      {
                        <td>Boeing 747－400</td>
                      }
                      }
                    <td>
                        @Html.DisplayFor(modelItem => item.WeekDay)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.EscapeTime)-@Html.DisplayFor(modelItem => item.ArriveTime)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.TopCost)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.MidCost)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.LowCost)
                    </td>
                    <td>
                        @Html.ActionLink("预订", "Select", new { id = item.ID })
                    </td>
            </tr>
        }
    </table>
</div>





